package controller;

import java.io.IOException;
import java.text.ParseException;
import java.util.Date;

import entity.User;
import service.impl.UserServiceImpl;

public class UserController {

	UserServiceImpl usi = new UserServiceImpl();
	
	public boolean regist(User user) throws IOException {
		return usi.regist(user);
	}

	public boolean login(User user) throws IOException {
		return usi.login(user);
	}

	public boolean saveMoney(int money) throws IOException {
		return usi.saveMoney(money);
	}

	public boolean withDraw(int money) throws IOException {
		return usi.withDraw(money);
	}

	public void checkMoney() throws IOException {
		usi.checkMoney();
	}

	public void checkSaveRe() throws IOException {
		usi.checkSaveRe();
	}

	public void checkWhDwRe() throws IOException {
		usi.checkWhDwRe();
	}

	public void checkTimeOp(String d1, String d2) throws IOException, ParseException {
		usi.checkTimeOp(d1, d2);
	}
	
	
}
